//
//  BaseViewController.m
//  OAProject
//
//  Created by yhj on 2017/2/20.
//  Copyright © 2017年 cdnunion. All rights reserved.
//

#import "BaseViewController.h"


@interface BaseViewController ()

@end

@implementation BaseViewController

-(UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self findHairlineImageViewUnder:self.navigationController.navigationBar];

     self.view.backgroundColor=BGColor;

}

-(UIImageView *)findHairlineImageViewUnder:(UIView*)view
{
    if([view isKindOfClass:[UIImageView class]] && view.bounds.size.height<=1.0) {
        return(UIImageView*)view;
    }
    for(UIView*subview in view.subviews) {
        UIImageView*imageView = [self findHairlineImageViewUnder:subview];
        if(imageView) {
            imageView.hidden = YES ;
            return imageView;
        }
    }
    return nil;
}

@end
